package com.hhh.sun.vo.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 返会给前端的订单封装类
 */
@ApiModel(description = "返会给前端的订单封装类")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OrderResVo {
    /**
     * 订单id
     */
    @ApiModelProperty(value = "订单id", position = 1)
    private Integer orderId;
    /**
     * 预约开始时间
     */
    @ApiModelProperty(value = "预约开始时间", position = 2)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/shanghai")
    private Date beginTime;
    /**
     * 预约时长
     */
    @ApiModelProperty(value = "预约时长", position = 3)
    private Integer lastTime;
}
